package com.rightsidetech.activity.dto.request.ride;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

@Data
public class AgentUpPictureReq implements Serializable {

    @ApiModelProperty(required = true)
    private Long id;

    @ApiModelProperty(value = "图片",required = true)
    @Size(min = 3,max = 3,message = "骑行活动上传图片为三张")
    @NotEmpty(message = "图片不允许为空")
    private List<@Pattern(regexp = "^http://.*|https://.*",message = "图片应该是一个url地址") String> picture;
}
